package Java.BlackHorse.Thread.ThreadMethod4;

public class MyThread extends Thread{
    public MyThread(String name) {
        super(name);
    }

    public MyThread() {
    }

    @Override
    public void run() {
        for(int i=0; i<=100; i++){
            System.out.println(Thread.currentThread().getName()+"  "+i);
//          表示出让CPU的执行权
            Thread.yield();
        }
    }
}
